package com.freesky.web.manager.remote.fallback;

import com.freesky.common.pojo.KindEditorResult;
import com.freesky.common.utils.reponse.JSONResponse;
import com.freesky.web.manager.remote.ImageRemote;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;
import org.springframework.web.multipart.MultipartFile;

@Component
public class ImageRemoteFallback implements ImageRemote
{
    private Logger logger = LoggerFactory.getLogger(ImageRemoteFallback.class);
    @Override
    public JSONResponse uploadFile(MultipartFile files) {
        logger.error("图片服务维护中");
        return null;
    }

    @Override
    public KindEditorResult kindEditor(MultipartFile files) {
        logger.error("富文本图片服务出故障了");
        return null;
    }
}
